package com.nft.service.school.feign;

import com.nft.service.school.req.SchoolActivityReq;
import com.nft.service.school.resp.SchoolActivityResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "nft-service-school",contextId="activityClient", path = "/activityClient")
public interface ISchoolActivityClient {
    @RequestMapping(value = "/getList", method = RequestMethod.POST)
    public List<SchoolActivityResp> getList(@RequestBody SchoolActivityReq query);

    @RequestMapping(value = "/getUserAppPage", method = RequestMethod.POST)
    public List<SchoolActivityResp> getPage(@RequestBody SchoolActivityReq query);

    @RequestMapping(value = "/getCount", method = RequestMethod.POST)
    public Long getCount(@RequestBody SchoolActivityReq query);
}
